#ifndef __LED_H__
#define __LED_H__

#include <stdio.h>
#include "driver/ledc.h"
#include "esp_err.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"

// LED 引脚
#define LED_GPIO        GPIO_NUM_4

// LEDC 配置
#define LEDC_CHANNEL    LEDC_CHANNEL_0
#define LEDC_TIMER      LEDC_TIMER_0
#define LEDC_MODE       LEDC_LOW_SPEED_MODE
#define LEDC_DUTY_RES   LEDC_TIMER_13_BIT   // 推荐 10 位分辨率 (0~1023)
#define LEDC_FREQUENCY  5000                // 1kHz 频率，呼吸效果更稳定

// 函数声明
void Led_init(void);
void LED_BreathTask(void *pvParameters);

#endif
